﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using vensoft.Entities;
using vensoft.BussinesLogic;

namespace vensoft.Win32
{
    public partial class frmDetallarPedido : Form
    {
        public frmDetallarPedido()
        {
            InitializeComponent();
        }

        public Pedido CurrentPedido
        {
            get{return proveedorBindingSource.Current as Pedido;}
            set{pedidoBindingSource.DataSource = value;}

        }
        public List<Proveedor> CurrentProveedor
        {
            get { return proveedorBindingSource.Current as List<Proveedor>; }
            set { proveedorBindingSource.DataSource = value; }
        }
        public List<DetallePedido> DetallePedido
        {
            get { return detallePedidoBindingSource.Current as List<DetallePedido>; }
            set { detallePedidoBindingSource.DataSource = value; }
        }

        public Usuario CurrentUsuario
        {
            get { return usuarioBindingSource.Current as Usuario; }
            set
            {
                usuarioBindingSource.DataSource = value;
            }
        }

        private void frmDetallarPedido_Load(object sender, EventArgs e)
        {

        }

        private void btnAceptar_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
